package com.ptu.server;

import com.ptu.dto.CommentDTO;
import com.ptu.dto.CommentListDTO;
import com.ptu.dto.CommentPageDTO;
import com.ptu.dto.CommentUpdateDTO;
import com.ptu.entity.Comment;
import com.ptu.util.PageResult;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CommentServer {

    List<Comment> getMyCommentList(Integer userId);

    PageResult getCommentList(CommentListDTO commentListDTO);

    void addComment(CommentDTO commentDTO);

    void deleteComment(Integer id);

    void updateComment(CommentDTO commentDTO);


    Comment getCommentById(Long orderId);
}
